<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<body>

    <form action="/pcs/company/form" class="layui-card layui-form" data-auto="true" method="post" data-table-id="CompanyTable">

        <input type="hidden" name="id" th:if="${vo}" th:value="${vo.id}"/>
        <div class="layui-card-body padding-15">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">公司名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" required th:value="${vo?.name}" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">信用代码</label>
                    <div class="layui-input-inline">
                        <input type="text" name="code" required th:value="${vo?.code}" class="layui-input">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">电话</label>
                    <div class="layui-input-inline">
                        <input type="text" name="telphone" required th:value="${vo?.telphone}" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">法人名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="legalName" required th:value="${vo?.legalName}" class="layui-input">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">法人手机号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="legalPhone" required th:value="${vo?.legalPhone}" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">法人身份证号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="legalCardNo" required th:value="${vo?.legalCardNo}" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label ">是否为五类人员专属公司</label>
                <div class="layui-input-block ">
                    <input type="radio" name="isWl" value="0" title="否" th:checked="${vo?.isWl==0}">
                    <input type="radio" name="isWl" value="1" title="是" th:checked="${vo?.isWl==1}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label ">地址</label>
                <div class="layui-input-block ">
                    <input type="text" name="addr" required th:value="${vo?.addr}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label ">营业执照</label>
                <div class="layui-input-block ">
                    <input type="hidden"  name="license" th:value="${vo?.license}" >
                    <script>$("[name=license]").uploadOneImageNew();</script>
                    <style>
                        .uploadimage, .uploadfile{
                            width: 78px!important;
                            height: 78px!important;
                        }
                    </style>
                </div>
            </div>



            <div class="layui-form-item">
                <label class="layui-form-label ">公司简介</label>
                <div class="layui-input-block ">
                    <textarea placeholder="请输入公司简介" class="layui-textarea" name="content">[[${vo?.content}]]</textarea>
                </div>
            </div>


            <div class="text-center layui-form-actions1">
                <button class="layui-btn" type="submit">保存</button>
                <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>关闭</button>
            </div>

        </div>
    </form>


</body>
</html>